package com.lovo.lesson8.model.dto;

import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel
public class StudentDTO {
    private String studentId;
    @ApiModelProperty(value = "学生姓名" ,required = true,example = "张飞")
    @NotBlank
    private String studentName;

    @ApiModelProperty(value = "学生性别" ,required = true,example = "男")
    @NotBlank
    private String gender;

    @ApiModelProperty(value = "学生年龄" ,required = true,example = "30")
    @NotNull
    @Min(18)
    @Max(50)
    private Integer age;

}
